﻿using System;

namespace Looptribe.Moodlin8.ViewModel
{
    public class NavSelector
    {
        private readonly string _text;
        private readonly Action _callback;

        public NavSelector(string text, Action callback)
        {
            _text = text;
            _callback = callback;
        }

        public void Execute()
        {
            _callback();
        }

        public override string ToString()
        {
            return _text;
        }
    }
}
